<template>
  <div class="oder-container">
    <ItemView :item="item" v-for="item in orderList" :key="item.id"/>
  </div>
</template>

<script setup lang="ts">
import {onMounted, ref} from "vue";
import {gerOderAII} from "@/api/Oder/Oder.ts";
import ItemView from "@/views/OrderView/components/ItemView.vue";

const orderList = ref([])
onMounted(async () => {
  const res = await gerOderAII()
  if (res.status == 200) {
    orderList.value = res.data
  }
})
</script>

<style scoped lang="less">
.oder-container {
  margin-top: 5px;
}
</style>